|
SET MUSIC SPEED
This command will set the speed at which the music is playing.
SET MUSIC SPEED Music Number,Speed
Music Number
Integer
The music number
Speed
Integer
The default value is 100, as a percentage of the standard rate of play. A value of 50 means the music is playing at half the normal speed where 200 will play the music twice as fast
This command will return an integer value representing the volume at which the music is playing
The default value is 100, as a percentage of the standard rate of play. A value of 50 means the music is playing at half the normal speed where 200 will play the music twice as fast. Set music speed does not work with CD devices, such as music CD"s played using the music commands, as the operation of the CD player is through limited set of Multimedia Control Interface commands via the operating system. Be aware that some media codecs limit your ability to alter the speed, as the media does not contain accurate seek data for this functionality, such as some forms of MP3 music files.
cls
load music "Dark Basic Professional\Media\Music\mp3\music space.mp3",1
play music 1
print "music speed ",music speed(1)
wait 1000*8
set music speed 1,200
print "music speed ",music speed(1)
do
loop
stop music 1
end
MUSIC Commands Menu
Index
|